From 117e303b4494e802638693c74ea95691964089de Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sat, 6 Feb 2016 04:24:39 +0100 Subject: [PATCH] filechoosernativewin32: Define MSC_VER at top of file The headers we include might include windows headers which define _MSC_VER already. --- gtk/gtkfilechoosernativewin32.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gtk/gtkfilechoosernativewin32.c b/gtk/gtkfilechoosernativewin32.c index 9e60e276d4..aa82216a65 100644 --- a/gtk/gtkfilechoosernativewin32.c +++ b/gtk/gtkfilechoosernativewin32.c @@ -19,6 +19,12 @@ #include "config.h" +/* Vista or newer */ +#define _WIN32_WINNT 0x0600 +#define WINVER _WIN32_WINNT +#define NTDDI_VERSION NTDDI_VISTA +#define COBJMACROS + #include "gtkfilechoosernativeprivate.h" #include "gtknativedialogprivate.h" @@ -41,12 +47,6 @@ #include "gtkfilechooserentry.h" #include "gtkfilefilterprivate.h" -/* Vista or newer */ -#define _WIN32_WINNT 0x0600 -#define WINVER _WIN32_WINNT -#define NTDDI_VERSION NTDDI_VISTA -#define COBJMACROS - #include "win32/gdkwin32.h" #include #include -- 2.30.2